/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.dao;

import cn.mcsys.myadmin.common.persistence.CrudDao;
import cn.mcsys.myadmin.common.persistence.annotation.MyBatisDao;
import cn.mcsys.myadmin.modules.air.entity.AirRealtimeMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 实习消息DAO接口
 * @author leopold
 * @version 2018-08-13
 */
@MyBatisDao
public interface AirRealtimeMessageDao extends CrudDao<AirRealtimeMessage> {

    List<AirRealtimeMessage> selectMessage4type(@Param("type") int type,@Param("limit")int limit);

    List<AirRealtimeMessage> getSubmission(String date);

    List<AirRealtimeMessage> getMessageByAirRidePointId(Integer airRidePointId);

    List<AirRealtimeMessage> getMessageByAirRidePointIdWithTime(@Param("airRidePointId") Integer airRidePointId, @Param("date") String date);

    List<AirRealtimeMessage> selectMessage4typeAndPointId(@Param("pointId") Integer id,@Param("type") int type,@Param("limit")int limit);

    Map<String,Object> selectRealMessageTypeCount();

    List<AirRealtimeMessage> getMessageLeast();

    List<AirRealtimeMessage> getMessageWithoutSys(@Param("pointId") Integer pointId);

    List<AirRealtimeMessage> getMessageItself(@Param("id")Integer id);
}